import { isWx } from '@/utils/validate'

const isDev = process.env.NODE_ENV === 'development'
// const devApi = 'https://www.shangehun.com'
const devApi = 'https://shan.weddingee.com'
const prodApi = 'https://www.shangehun.com'
const apiUrl = isDev ? devApi : prodApi

const wx = {
  apiUrl,
  apiKey: 'b8af1b05a2431fc341d9ed6fce1f466e',
  haloApp: 'wedding-miniapp',
  source: 'XYQEYj'
}

const h5 = {
  apiUrl: '',
  apiKey: 'd7b4f9e2122de4875f280dd8e819d478',
  haloApp: 'wedding-h5',
  source: 'G6pQyO'
}

export default (isWx ? wx : h5)
